﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using Aeon.Configuration;

namespace Aeon.Emulator.Launcher
{
    /// <summary>
    /// Dialog box for changing drive mountings.
    /// </summary>
    public partial class MountWindow : Window
    {
        /// <summary>
        /// Drives dependency property definition.
        /// </summary>
        public static readonly DependencyProperty DrivesProperty = DependencyProperty.Register("Drives", typeof(MountedDriveCollection), typeof(MountWindow));

        /// <summary>
        /// Initializes a new instance of the MountWindow class.
        /// </summary>
        public MountWindow()
        {
            InitializeComponent();
        }

        /// <summary>
        /// Gets or sets the drive collection to edit. This is a dependency property.
        /// </summary>
        public MountedDriveCollection Drives
        {
            get { return (MountedDriveCollection)GetValue(DrivesProperty); }
            set { SetValue(DrivesProperty, value); }
        }

        /// <summary>
        /// Invoked when the OK button is clicked.
        /// </summary>
        /// <param name="sender">Source of the event.</param>
        /// <param name="e">Information about the event.</param>
        private void OKButton_Click(object sender, RoutedEventArgs e)
        {
            this.DialogResult = true;
        }
    }
}
